<div id="leftcol">
    <?php foreach ($modules as $module) { ?>
  		<?php echo ${$module['code']}; ?>
  	<?php } ?>
</div>